package com.ha7419x.Controller;

import com.ha7419x.service.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    /*@Autowired*/
    private Test test;
    @Autowired
    public TestController(Test test) {
        this.test = test;
    }


    // http://localhost:8080/hello
    @GetMapping("/hello")
    public String sysHello() {
        return test.sayHello();
    }
}
